package object;

/**
 * 测试对象比较
 */
public class Demo {
    public static void main(String[] args) {
        Student s1 = new Student("zhangsan", 22);
        Student s2 = new Student("zhangsan", 23);

        System.out.println(s1 == s2); // false
        System.out.println(s1.equals(s2)); // false
    }
}
